﻿
$(function () {
    $("#ReportViewer1").width($(window).width() - 20).height($(window).height() - 20)
    if ($("#ReportFilters1_btnRunReport", parent.frames[1].document.forms[0])[0] != null) {
        $("#ReportFilters1_btnRunReport", parent.frames[1].document.forms[0])[0].disabled = false;
        $("#ReportFilters1_txtFrom", parent.frames[1].document.forms[0])[0].disabled = false;
        $("#ReportFilters1_txtTo", parent.frames[1].document.forms[0])[0].disabled = false;
        $("#ReportFilters1_optRegionMarket", parent.frames[1].document.forms[0])[0].disabled = false;
        $("#ReportFilters1_ddlMarkets", parent.frames[1].document.forms[0])[0].disabled = false;
        $("#ReportFilters1_optAcctManager", parent.frames[1].document.forms[0])[0].disabled = false;
        $("#ReportFilters1_ddlManagers", parent.frames[1].document.forms[0])[0].disabled = false;
        $("#ReportFilters1_chlLocations", parent.frames[1].document.forms[0])[0].disabled = false;
        $("#ReportFilters1_chlDwellings", parent.frames[1].document.forms[0])[0].disabled = false;
        $("#ReportFilters1_chlProducts", parent.frames[1].document.forms[0])[0].disabled = false;
        $("#ReportFilters1_chlProducts2", parent.frames[1].document.forms[0])[0].disabled = false;

        $("#imgLoadingReport", parent.frames[1].document.forms[0]).css("display", "none")
    }
});

$(window).resize(function () {
    $("#ReportViewer1").width($(window).width() - 20).height($(window).height() - 30)
});
$("#ReportFilters1_btnRunReport", parent.frames[1].document.forms[0])